package rad.framework.mda.generator.template.maven.site.apt;

import java.util.*;
import org.eclipse.uml2.uml.*;
import rad.framework.mda.generator.util.*;

public class Abbreviation
{
  protected static String nl;
  public static synchronized Abbreviation create(String lineSeparator)
  {
    nl = lineSeparator;
    Abbreviation result = new Abbreviation();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "";
  protected final String TEXT_2 = "=" + NL;
  protected final String TEXT_3 = NL;
  protected final String TEXT_4 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    Model uml2Model = (Model) argument;
    for (Iterator i=ClassHelper.getWords(uml2Model).iterator(); i.hasNext();) { String property = (String)i.next();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(property);
    stringBuffer.append(TEXT_2);
    }
    stringBuffer.append(TEXT_3);
    stringBuffer.append(TEXT_4);
    return stringBuffer.toString();
  }
}
